<!doctype html>
<html>
  <head>
    <title>Describe data for Solid · Solid</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link
      rel="shortcut icon"
      type="image/x-icon"
      href="/favicon.ico?"
    />
    <link rel="stylesheet" href="/assets/css/main.css" />
  </head>

  <body>
    <header>
  <nav class="navbar" role="navigation" aria-label="main navigation">
    <div class="navbar-brand">
      <a class="navbar-item" href="/">
        <img
          src="/assets/img/solid-emblem.svg"
          alt="[Solid logo]"
        />
      </a>
      <a class="is-hidden-mobile navbar-item navbar-brand-name is-uppercase is-size-4" href="/">
        Solid
      </a>
    </div>
  
    <div class="navbar-menu">
      <div class="navbar-end">
        
          <a
            class="navbar-item is-size-6 is-size-5-tablet"
            href="/use-solid"
          >Use Solid</a>
        
          <a
            class="navbar-item is-size-6 is-size-5-tablet"
            href="/for-developers"
          >For Developers</a>
        
          <a
            class="navbar-item is-size-6 is-size-5-tablet"
            href="/for-enterprises"
          >For Enterprises</a>
        
          <a
            class="navbar-item is-size-6 is-size-5-tablet"
            href="/faqs"
          >FAQ</a>
        
      </div>
    </div>
  </nav>
</header>

    <div id="draft-warning"></div>
<script>
  if (document.location.hostname === 'localhost' || document.location.hostname === 'solid.github.io') {
    const draftWarningElement = document.getElementById('draft-warning')
    draftWarningElement.innerHTML = `
      <div class="message is-danger is-large" role="alert">
        <div class="message-body">
          You are currently viewing a draft version of the Solid website. If you are looking for reliable information, visit the live site at <a href="https://solidproject.org/for-developers/apps/vocabularies/use/extended" title="The official Solid website">SolidProject.org</a>.
        </div>
      </div>
    `;
  }
</script>

    
  <nav id="breadcrumb" class="breadcrumb">
    <div class="container">
      <ul>
        <li>
          <a href="/">
            Home
          </a>
        </li>
        
        
          <li>
            <a href="/for-developers/">
              For Developers
            </a>
          </li>
        
        
        
          <li>
            <a href="">
              Describe data for Solid
            </a>
          </li>
        
      </ul>
    </div>
  </nav>


    <main>
      <div class="container">
  <div class="columns">
    <div class="column is-two-thirds">
      <article class="section content">
        <p>Now that we have a vocabulary, we can use it to describe data. To this end, let us introduce the two most renowned obelisks designers of their time: <a href="https://vuittonluis.solid.community/profile/card#me">Vuittonluis</a> and <a href="https://garmani.solid.community/profile/card#me">G. Armani</a>. if you look up their profile, you will notice that each of them describes himself as an <a href="http://w3id.org/obelisk/Sculptor"><code class="highlighter-rouge">obelisk:Sculptor</code></a>:</p>
<div class="language-turtle highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kd">@prefix</span><span class="w"> </span><span class="nn">obelisk:</span><span class="w"> </span><span class="nl">&lt;http://w3id.org/obelisk/&gt;</span><span class="w"> </span><span class="p">.</span><span class="w">
</span><span class="c1"># The next line defines an empty prefix ":", which points to the current document (e.g. https://garmani.solid.community/profile/card)</span><span class="w">
</span><span class="kd">@prefix</span><span class="w"> </span><span class="err">:</span><span class="w"> </span><span class="nl">&lt;#&gt;</span><span class="p">.</span><span class="w">

</span><span class="err">:</span><span class="n">me
</span><span class="w">    </span><span class="c1"># "a" is short for "rdf:type"</span><span class="w">
    </span><span class="k">a</span><span class="w"> </span><span class="nn">obelisk:</span><span class="n">Sculptor</span><span class="p">.</span><span class="w">
</span><span class="c1">#...</span><span class="w">
</span></code></pre></div></div>

<p>In this case, the thing that we are talking about is <a href="https://garmani.solid.community/profile/card#me"><code class="highlighter-rouge">:me</code></a>, and we are saying that this thing is of type <a href="http://w3id.org/obelisk/Sculptor"><code class="highlighter-rouge">obelisk:Sculptor</code></a>. <a href="https://vuittonluis.solid.community/profile/card#me">Vuittonluis</a> keeps track of the <a href="https://vuittonluis.solid.community/public/gallery/prestigious%20sales/">obelisks he sold to VIP</a>. For instance, he built a <a href="https://vuittonluis.solid.community/public/gallery/prestigious%20sales/cleopatra.ttl#cleopatras_obelisk">custom one</a> for his queen <a href="https://cleopatra.solid.community/profile/card#me">Cleopatra</a>:</p>
<div class="language-turtle highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kd">@prefix</span><span class="w"> </span><span class="err">:</span><span class="w"> </span><span class="nl">&lt;#&gt;</span><span class="p">.</span><span class="w">
</span><span class="kd">@prefix</span><span class="w"> </span><span class="nn">obelisk:</span><span class="w"> </span><span class="nl">&lt;http://w3id.org/obelisk/&gt;</span><span class="w"> </span><span class="p">.</span><span class="w">
</span><span class="kd">@prefix</span><span class="w"> </span><span class="nn">xsd:</span><span class="w"> </span><span class="nl">&lt;http://www.w3.org/2001/XMLSchema#&gt;</span><span class="w"> </span><span class="p">.</span><span class="w">

</span><span class="err">:</span><span class="n">cleopatras_obelisk</span><span class="w"> </span><span class="k">a</span><span class="w"> </span><span class="nn">obelisk:</span><span class="n">Obelisk</span><span class="w"> </span><span class="p">;</span><span class="w">
    </span><span class="nn">obelisk:</span><span class="n">ownedBy</span><span class="w"> </span><span class="nl">&lt;https://cleopatra.solid.community/profile/card#me&gt;</span><span class="w"> </span><span class="p">;</span><span class="w">
    </span><span class="nn">obelisk:</span><span class="n">builtBy</span><span class="w"> </span><span class="nl">&lt;https://vuittonluis.solid.community/profile/card#me&gt;</span><span class="w"> </span><span class="p">;</span><span class="w">
    </span><span class="nn">obelisk:</span><span class="n">heigth</span><span class="w"> </span><span class="s">"25.0"</span><span class="p">^^</span><span class="nn">xsd:</span><span class="n">float</span><span class="p">.</span><span class="w">
</span></code></pre></div></div>

<p><a href="https://cleopatra.solid.community/profile/card#me">Cleopatra</a> has a <a href="https://cleopatra.solid.community/public/collections/My%20obelisk%20collection/">collection of obelisks</a>. Let’s check it out:</p>
<div class="language-turtle highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kd">@prefix</span><span class="w"> </span><span class="err">:</span><span class="w"> </span><span class="nl">&lt;#&gt;</span><span class="p">.</span><span class="w">
</span><span class="kd">@prefix</span><span class="w"> </span><span class="nn">coll:</span><span class="w"> </span><span class="nl">&lt;&gt;</span><span class="p">.</span><span class="w">
</span><span class="kd">@prefix</span><span class="w"> </span><span class="nn">ldp:</span><span class="w"> </span><span class="nl">&lt;http://www.w3.org/ns/ldp#&gt;</span><span class="p">.</span><span class="w">
</span><span class="kd">@prefix</span><span class="w"> </span><span class="nn">obelisk:</span><span class="w"> </span><span class="nl">&lt;http://w3id.org/obelisk/&gt;</span><span class="w"> </span><span class="p">.</span><span class="w">
</span><span class="kd">@prefix</span><span class="w"> </span><span class="nn">me:</span><span class="w"> </span><span class="nl">&lt;https://cleopatra.solid.community/profile/card#me&gt;</span><span class="w"> </span><span class="p">.</span><span class="w">
</span><span class="kd">@prefix</span><span class="w"> </span><span class="nn">xsd:</span><span class="w"> </span><span class="nl">&lt;http://www.w3.org/2001/XMLSchema#&gt;</span><span class="w"> </span><span class="p">.</span><span class="w">
</span><span class="kd">@prefix</span><span class="w"> </span><span class="nn">rdfs:</span><span class="w"> </span><span class="nl">&lt;http://www.w3.org/2000/01/rdf-schema#&gt;</span><span class="w"> </span><span class="p">.</span><span class="w">

</span><span class="nn">coll:</span><span class="w">
    </span><span class="k">a</span><span class="w"> </span><span class="nn">ldp:</span><span class="n">BasicContainer,</span><span class="w"> </span><span class="nn">ldp:</span><span class="n">Container</span><span class="p">;</span><span class="w">
    </span><span class="nn">ldp:</span><span class="n">contains</span><span class="w"> </span><span class="err">:</span><span class="n">myFirstObelisk,</span><span class="w"> </span><span class="err">:</span><span class="n">myDesignerObelisk,</span><span class="w"> </span><span class="err">:</span><span class="n">myOwnObelisk</span><span class="p">.</span><span class="w">

</span><span class="err">:</span><span class="n">myFirstObelisk</span><span class="w"> </span><span class="k">a</span><span class="w"> </span><span class="nn">obelisk:</span><span class="n">Obelisk</span><span class="w"> </span><span class="p">;</span><span class="w">
    </span><span class="nn">obelisk:</span><span class="n">ownedBy</span><span class="w"> </span><span class="nn">me:</span><span class="w"> </span><span class="p">;</span><span class="w">
    </span><span class="nn">obelisk:</span><span class="n">heigth</span><span class="w"> </span><span class="s">"3.0"</span><span class="p">^^</span><span class="nn">xsd:</span><span class="n">float</span><span class="w"> </span><span class="p">;</span><span class="w">
    </span><span class="nn">rdfs:</span><span class="n">comment</span><span class="w"> </span><span class="s">"I was offered this as a child. I don't remember who built it, and it's funny how it seemed big to me back then."</span><span class="p">.</span><span class="w">

</span><span class="err">:</span><span class="n">myDesignerObelisk</span><span class="w"> </span><span class="k">a</span><span class="w"> </span><span class="nn">obelisk:</span><span class="n">Obelisk</span><span class="w"> </span><span class="p">;</span><span class="w">
    </span><span class="nn">obelisk:</span><span class="n">ownedBy</span><span class="w"> </span><span class="nn">me:</span><span class="w"> </span><span class="p">;</span><span class="w">
    </span><span class="nn">obelisk:</span><span class="n">builtBy</span><span class="w"> </span><span class="nl">&lt;https://vuittonluis.solid.community/profile/card#me&gt;</span><span class="p">;</span><span class="w">
    </span><span class="nn">obelisk:</span><span class="n">heigth</span><span class="w"> </span><span class="s">"25.0"</span><span class="p">^^</span><span class="nn">xsd:</span><span class="n">float</span><span class="w"> </span><span class="p">;</span><span class="w">
    </span><span class="nn">rdfs:</span><span class="n">seeAlso</span><span class="w"> </span><span class="nl">&lt;https://vuittonluis.solid.community/public/gallery/prestigious%20sales/cleopatra.ttl#cleopatras_obelisk&gt;</span><span class="w"> </span><span class="p">.</span><span class="w">

</span><span class="err">:</span><span class="n">myOwnObelisk</span><span class="w"> </span><span class="k">a</span><span class="w"> </span><span class="nn">obelisk:</span><span class="n">Obelisk</span><span class="w"> </span><span class="p">;</span><span class="w">
    </span><span class="nn">obelisk:</span><span class="n">ownedBy</span><span class="w"> </span><span class="nn">me:</span><span class="w"> </span><span class="p">;</span><span class="w">
    </span><span class="nn">obelisk:</span><span class="n">builtBy</span><span class="w"> </span><span class="nn">me:</span><span class="w"> </span><span class="p">;</span><span class="w">
    </span><span class="nn">obelisk:</span><span class="n">heigth</span><span class="w"> </span><span class="s">"0.2"</span><span class="p">^^</span><span class="nn">xsd:</span><span class="n">float</span><span class="w"> </span><span class="p">;</span><span class="w">
    </span><span class="nn">rdfs:</span><span class="n">comment</span><span class="w"> </span><span class="s">"I made this one myself!"</span><span class="w"> </span><span class="p">.</span><span class="w">
</span></code></pre></div></div>

<p>Some of the elements (e.g. <a href="http://www.w3.org/ns/ldp#Container">ldp:Container</a>) in there are specific to how Solid represents data storage. If you want to find out more about that, you can look up the <a href="/for-developers/apps/vocabularies/well-known/technical">description of this vocabulary</a>. Otherwise, we can conclude this short tutorial by creating a nice collection of obelisks in your own pod. You can see the vocabulary snippet into <code class="highlighter-rouge">src/collection.js</code>.</p>

<iframe src="https://codesandbox.io/embed/my-first-obelisk-collection-1ybvq?fontsize=14" title="my first obelisk collection" allow="geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb" style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"></iframe>

<p>However, it’s not really convenient to manage vocabularies as plain text: it is error-prone, hard to maintain, and unpleasant to read. To address this issue, we introduce some helper libraries that enable <a href="/for-developers/apps/vocabularies/publish/artifacts">publishing your vocabulary as code artifacts</a>, and to <a href="/for-developers/apps/vocabularies/code">use your vocabulary in your code</a>.</p>

      </article>
    </div>
    <aside id="sidebar" class="column is-one-third is-hidden-mobile section">
      <div class="menu is-large">
        
          

<ul class="menu-list">
  
    
      <li>
        
          <a href="/for-developers/apps/first-app">Writing a Solid application</a>
        
      </li>
    
  
    
      <li>
        
          <a href="/for-developers/apps/vocabularies">Vocabularies</a>
        
        <!-- This is for categories with sub-categories -->
        
          
            <ul>
              <li>
                
                  
                    <a href="/for-developers/apps/vocabularies">Overview</a>
                  
                
              </li>
            </ul>
          
            <ul>
              <li>
                
                  
                    <a href="/for-developers/apps/vocabularies/create/quickstart">Quickstart</a>
                  
                
              </li>
            </ul>
          
            <ul>
              <li>
                
                  
                    <a href="/for-developers/apps/vocabularies/well-known">Discover</a>
                  
                
              </li>
            </ul>
          
            <ul>
              <li>
                
                  
                    <a href="/for-developers/apps/vocabularies/create">Create</a>
                  
                  <ul>
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                        <li>
                          <a
                            href="/for-developers/apps/vocabularies/create"
                            
                          >Create your own vocabulary</a>
                        </li>
                      
                    
                      
                        <li>
                          <a
                            href="/for-developers/apps/vocabularies/create/best-practices"
                            
                          >Vocabulary building best practices</a>
                        </li>
                      
                    
                      
                        <li>
                          <a
                            href="/for-developers/apps/vocabularies/create/extended"
                            
                          >Improve your vocabulary</a>
                        </li>
                      
                    
                      
                        <li>
                          <a
                            href="/for-developers/apps/vocabularies/create/methodology"
                            
                          >NeOn, a vocabulary creation methodology</a>
                        </li>
                      
                    
                      
                        <li>
                          <a
                            href="/for-developers/apps/vocabularies/use/extended"
                             class="is-active" 
                          >Describe data for Solid</a>
                        </li>
                      
                    
                      
                        <li>
                          <a
                            href="/for-developers/apps/vocabularies/publish"
                            
                          >Publish your vocabulary</a>
                        </li>
                      
                    
                      
                        <li>
                          <a
                            href="/for-developers/apps/vocabularies/publish/rdf"
                            
                          >Publish your vocabulary as RDF</a>
                        </li>
                      
                    
                      
                        <li>
                          <a
                            href="/for-developers/apps/vocabularies/publish/artifacts"
                            
                          >Publish your vocabulary as code artifacts</a>
                        </li>
                      
                    
                      
                    
                      
                    
                  </ul>
                
              </li>
            </ul>
          
            <ul>
              <li>
                
                  
                    <a href="/for-developers/apps/vocabularies/code">Code</a>
                  
                
              </li>
            </ul>
          
            <ul>
              <li>
                
                  
                
              </li>
            </ul>
          
        
      </li>
                    <a href="/for-developers/apps/vocabularies"></a>
    
  
    
      <li>
        
          <a href="/for-developers/apps/common-patterns">Common patterns</a>
        
      </li>
    
  
    
      <li>
        
          <a href="/for-developers/apps/tools">Tools and libraries</a>
        
      </li>
    
  
</ul>
        
      </div>
    </aside>
  </div>
</div>

    </main>
    <footer id="footer" class="footer">
  <div class="container">
    <div class="columns">
      
        <div class="column">
          <ul>
            <li>
              
                <a class="title is-size-5" href="/">Home</a>
              
            </li>
            
              <li>
                
                  <a class="is-size-5" href="/use-solid">Use Solid</a>
                
              </li>
            
              <li>
                
                  <a class="is-size-5" href="/implement">Implement Solid</a>
                
              </li>
            
              <li>
                
                  <a class="is-size-5" href="/team">Team</a>
                
              </li>
            
              <li>
                
                  <a class="is-size-5" href="/faqs">FAQs</a>
                
              </li>
            
          </ul>
        </div>
      
        <div class="column">
          <ul>
            <li>
              
                <span class="title is-size-5">What's New</span>
              
            </li>
            
              <li>
                
                  <a class="is-size-5" href="/this-week-in-solid">This week in Solid</a>
                
              </li>
            
              <li>
                
                  <a class="is-size-5" href="/press">Press</a>
                
              </li>
            
              <li>
                
                  <a class="is-size-5" href="/events">Solid events</a>
                
              </li>
            
          </ul>
        </div>
      
        <div class="column">
          <ul>
            <li>
              
                <a class="title is-size-5" href="/for-developers">For Developers</a>
              
            </li>
            
              <li>
                
                  <a class="is-size-5" href="/for-developers/apps">Writing apps</a>
                
              </li>
            
              <li>
                
                  <a class="is-size-5" href="/for-developers/pod-server">Running a Pod server</a>
                
              </li>
            
              <li>
                
                  <a class="is-size-5" href="/funding">Funding</a>
                
              </li>
            
              <li>
                
                  <a class="is-size-5" href="https://forum.solidproject.org">Forum</a>
                
              </li>
            
          </ul>
        </div>
      
        <div class="column">
          <ul>
            <li>
              
                <span class="title is-size-5">More</span>
              
            </li>
            
              <li>
                
                  <a class="is-size-5" href="/standardisation">Standardisation</a>
                
              </li>
            
              <li>
                
                  <a class="is-size-5" href="/license">License</a>
                
              </li>
            
              <li>
                
                  <a class="is-size-5" href="/logo-usage-guidelines">Logo usage guidelines</a>
                
              </li>
            
          </ul>
        </div>
      
    </div>
  </div>

  <nav class="navbar" role="navigation" aria-label="main navigation">
    <div class="navbar-brand">
      <a class="navbar-item" href="/">
        <img
          src="/assets/img/solid-emblem.svg"
          alt="[Solid logo]"
        />
      </a>
      <a class="navbar-item" href="mailto:info@solidproject.org">
        info@solidproject.org
      </a>
      <a class="navbar-item" href="https://github.com/solid/" title="Solid on GitHub">
        <span class="image is-24x24">
          <img
            src="/assets/img/fontawesome-free-5.11.2-web/svgs/brands/github.svg"
            alt="GitHub"
            class="brand-icon"
          />
        </span>
      </a>
      <a class="navbar-item" href="https://twitter.com/project_solid" title="Solid on Twitter">
        <span class="image is-24x24">
          <img
            src="/assets/img/fontawesome-free-5.11.2-web/svgs/brands/twitter.svg"
            alt="Twitter"
            class="brand-icon"
          />
        </span>
      </a>
    </div>
  </nav>
</footer>

  </body>


</html>
